home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / DragIconP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.2 KB  |  99 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.3
  7. */ 
  8. /*   $RCSfile: DragIconP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:37:08 $ */
  9. /*
  10. *  (c) Copyright 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11.  
  12. #ifndef _XmDragIconP_h
  13. #define _XmDragIconP_h
  14.  
  15. #include <Xm/VendorSEP.h>
  16. #include <Xm/DragIcon.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22.  
  23. #ifdef _NO_PROTO
  24. typedef void     (*XmCloneVisualProc)();
  25. typedef void     (*XmMovePixmapProc)();
  26. #else
  27. typedef void (*XmCloneVisualProc)
  28.     (XmDragIconObject, Widget, Widget);
  29. typedef void (*XmMovePixmapProc)
  30.      (XmDragIconObject, XmDragIconObject, XmDragIconObject,
  31. #if NeedWidePrototypes
  32.       int, int);
  33. #else
  34.       Position, Position);
  35. #endif /* NeedWidePrototypes */
  36. #endif /* _NO_PROTO */
  37.  
  38. typedef struct {
  39.     XtPointer        extension;
  40. } XmDragIconClassPart;
  41.  
  42. typedef struct _XmDragIconClassRec{
  43.     RectObjClassPart        rectangle_class;
  44.     XmDragIconClassPart        dragIcon_class;
  45. }XmDragIconClassRec;
  46.  
  47. typedef struct {
  48.     Cardinal    depth;
  49.     Pixmap    pixmap;
  50.     Dimension    width, height;
  51.     Pixmap    mask;
  52.     Position    hot_x, hot_y;
  53.     Position    offset_x, offset_y;
  54.     unsigned char    attachment;
  55.     Boolean    isDirty;
  56.     Region      region;
  57.     Region      restore_region;
  58.     Position    x_offset, y_offset;
  59. } XmDragIconPart, *XmDragIconPartPtr;
  60.  
  61. externalref XmDragIconClassRec     xmDragIconClassRec;
  62.  
  63. typedef struct _XmDragIconRec{
  64.     ObjectPart            object;
  65.     RectObjPart            rectangle;
  66.     XmDragIconPart        drag;
  67. }XmDragIconRec;
  68.  
  69. /********    Private Function Declarations    ********/
  70. #ifdef _NO_PROTO
  71.  
  72. extern void _XmDestroyDefaultDragIcon() ;
  73. extern Boolean _XmDragIconIsDirty() ;
  74. extern void _XmDragIconClean() ;
  75. extern Widget _XmGetTextualDragIcon() ;
  76.  
  77. #else
  78.  
  79. extern void _XmDestroyDefaultDragIcon(
  80.             XmDragIconObject icon) ;
  81. extern Boolean _XmDragIconIsDirty(
  82.             XmDragIconObject icon) ;
  83. extern void _XmDragIconClean(
  84.             XmDragIconObject icon1,
  85.             XmDragIconObject icon2,
  86.             XmDragIconObject icon3) ;
  87. extern Widget _XmGetTextualDragIcon(
  88.             Widget w) ;
  89.  
  90. #endif /* _NO_PROTO */
  91. /********    End Private Function Declarations    ********/
  92.  
  93.  
  94. #ifdef __cplusplus
  95. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  96. #endif
  97.  
  98. #endif /* _XmDragIconP_h */
  99.